package com.ss.android.article.base.feature.detail.presenter;

import com.ss.android.common.load.AsyncLoader.LoaderProxy;

final class CommentLoader implements LoaderProxy {
    private final DetailLoader mDetailLoader;

    CommentLoader(DetailLoader detailLoader) {
        this.mDetailLoader = detailLoader;
    }

    public final Object doInBackground(Object key, Object param, Object extra) {
        return Boolean.valueOf(ArticleTabCommentsRequestTask.requestComments(this.mDetailLoader.mContext, ((CommentFetcher) param)));
    }

    public final void onLoaded(Object key, Object param, Object extra, Object result) {
        Object v0 = this.mDetailLoader.mDetailLoaderCallbackRef.get();
        if(v0 != null) {
            ((DetailLoader.Callback)v0).onCommentLoaded(((CommentFetcher) param), ((Boolean) result).booleanValue());
        }
    }
}

